package com.imooc.order.exception;

import com.imooc.order.enums.ResultEnum;

public class OrderException extends RuntimeException{

	private Integer code;
	
	public OrderException(Integer code, String message) {
		super(message);
		this.code = code;
	}
	public OrderException(ResultEnum enums) {
		super(enums.getMessage());
		this.code = enums.getCode();
	}
}
